package com.medical.sjq.dao;

import com.medical.entity.TbArea;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbAreaMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TbArea record);

    int insertSelective(TbArea record);

    TbArea selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbArea record);

    int updateByPrimaryKey(TbArea record);
    
    List<TbArea> getAllArea(@Param("areaName") String areaName);
    
    /**
     * 根据areaId获取所有子区域信息列表
     * @return
     */
    List<TbArea> getAreaChilderList(@Param("areaId") String areaId);
    
    
}